﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.SolveLoops.TxMultipleSelectionDataGrid
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Collections;
using System.Windows;
using System.Windows.Controls;


namespace DnProcessSimulateCommands.SolveLoops;

public class TxMultipleSelectionDataGrid : DataGrid
{
  public static readonly DependencyProperty SelectedItemsListProperty = DependencyProperty.Register(nameof (SelectedItemsList), typeof (IList), typeof (TxMultipleSelectionDataGrid), new PropertyMetadata((PropertyChangedCallback) null));

  public TxMultipleSelectionDataGrid()
  {
    this.SelectionChanged += new SelectionChangedEventHandler(this.TxMultipleSelectionDataGrid_SelectionChanged);
  }

  private void TxMultipleSelectionDataGrid_SelectionChanged(
    object sender,
    SelectionChangedEventArgs e)
  {
    this.SelectedItemsList = this.SelectedItems;
  }

  public IList SelectedItemsList
  {
    get => (IList) this.GetValue(TxMultipleSelectionDataGrid.SelectedItemsListProperty);
    set => this.SetValue(TxMultipleSelectionDataGrid.SelectedItemsListProperty, (object) value);
  }
}
